import { BaseController } from './BaseController';
import {ConnPoolInstance} from '../AppDatabase';

export class TestDb extends BaseController {
    async Start(){
        let sql = "INSERT INTO payment_log SET ?";
        let data = {
            id: 0,
            channelId: 1,
            channelName: '测试渠道名字',
            orderId: "SomeTestOrderId",
            p_type: 1,
            uid: 666,
            money: 100, 
            gamemoney: 100,
            time: this.GetUnixTime()
        };
        
        let ret = await ConnPoolInstance.Insert(sql, data);

        this.response.send("Insert Success: " + ret);
    }
}
